{if $params.action=="index"}

	{if $Acl.mvc.control.users.add}
		<p><a href="{$view->siteUrl()}/control/users/add/" class="ui-button ui-button-text-icons ui-state-default ui-corner-all"><span class="ui-icon ui-icon-plusthick"></span><span class="ui-button-text">{$translate->_('Добавить пользователя')}</span></a></p>
	{/if}

	{$UsersDataTable}

{/if}


{if $params.action=="add" || $params.action=="edit"}
	{$Form}
{/if}


{if $params.action=="roles"}

	{if $Acl.mvc.control.users.roleadd}
		<p><a href="{$view->siteUrl()}/control/users/roleadd/" class="ui-button ui-button-text-icons ui-state-default ui-corner-all"><span class="ui-icon ui-icon-plusthick"></span><span class="ui-button-text">{$translate->_('Добавить группу')}</span></a></p>
	{/if}

	{$RolesDataTable}

{/if}


{if $params.action=="roleadd" || $params.action=="roleedit"}
	{$Form}
{/if}

